<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>details_service_contract</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <body>
  	<s:include value="/include/header.jsp"></s:include>
  	<s:if test="%{#session.userId != null}">
  	<table>
  	<tr>
  	<td><s:text name="Service Contract ID" /></td>
  	<td><s:property value="servicecontract.scId" /></td>
	</tr><tr>
  	<td><s:text name="Real Estate ID" /></td>
  	<td>
  		<a href="<s:url includeParams="none" namespace="/" action="user/details_real_estate" >
  					<s:param name="reId"><s:property value="servicecontract.reId" /></s:param></s:url>">
			<s:property value="servicecontract.reId" />
		</a>
	</td>
	</tr><tr>
	<td><s:text name="Creation Time" /></td>
	<td><s:property value="servicecontract.scDate"/></td>
	</tr><!--<tr>
    <td><s:text name="Contract Status" /></td>
    <td><s:property value="servicecontract.scStatus" />
    <s:form action="user/edit_sc_status.ra" >
    	<input type="hidden" name="edit_id" id="edit_id" value="<s:property value="servicecontract.scId" />"/>
    	<s:submit value="%{getText('record.edit_status')}" />
    </s:form>
    </td
    </tr>>--><tr>
  	<td><s:text name="Contract Type" /></td>
  	<td><s:property value="servicecontract.scType" /></td>
  	</tr><tr>
  	<td><s:text name="Description" /></td>
  	<td><s:property value="servicecontract.scDescription" /></td>
  	</tr></table>  	
  	<a href="<s:url includeParams="none" namespace="/" action="user/go_add_transaction" >
  					<s:param name="scId"><s:property value="servicecontract.scId" /></s:param></s:url>">
		<s:text name="create_transaction" />
	</a>
	<br>			
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_TRs" >
					<s:param name="scId"><s:property value="servicecontract.scId" /></s:param></s:url>">
		<s:text name="show_the_TRs" />
	</a>
	<br/>			
	<a href="<s:url includeParams="none" namespace="/" action="user/go_add_file" >
  					<s:param name="scId"><s:property value="servicecontract.scId" /></s:param>
  					<s:param name="trId">0</s:param>
  					<s:param name="BId">0</s:param></s:url>">
		<s:text name="create_file" />
	</a>
	<br>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_files" >
					<s:param name="scId"><s:property value="servicecontract.scId" /></s:param>
					<s:param name="trId">0</s:param>  					
  					<s:param name="BId">0</s:param></s:url>">
		<s:text name="show_the_files" />
	</a>
	<br>
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_SCs" >
					<s:param name="reId"><s:property value="servicecontract.reId" /></s:param></s:url>">
		<s:text name="backto_the_SCs" />
	</a>
	<br/>
	</s:if>
  </body>
</html>
